Table of Contents
- Getting Started
- EO.Pdf
- Overview
- Installation and Deployment
- Using HTML to PDF
- Using PDF Creator
- Using PDF Creator
- Getting Started
- Advanced Formatting Techniques
- Interactive Features
- Low Level Content Objects
- Working with Existing PDF Files
- Using in Web Application
- Advanced Topics
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Common Topics
- Reference
Using Image |
To create an image in the PDF file, simply initializes an AcmImage object and add it to the content tree. For example:
//Load the image System.Drawing.Image gdiImage = System.Drawing.Image.FromFile("c:\\Hello.gif"); //Create an output content with three child contents: //"some text", the image and "some more text". AcmContent content = new AcmContent( new AcmText("some text "), new AcmImage(gdiImage), new AcmText(" some more text"));
The above code will render "some text", the image and "some more text" in the same line.